from tkinter import *
from tkinter.colorchooser import *

TIP = '空格键或双击变色'
TIP_DURATION = 5000  # ms

def next_bg(event):
    ''' 给心情换个好看的颜色吧 ^_^ '''
    # ((r., g., b.), '#rrggbb')
    next_color = askcolor()
    tk['bg'] = next_color[1]

tk = Tk()

tk.attributes('-fullscreen', 1)
tk.bind('<Double-Button-1>', next_bg)
tk.bind('<space>', next_bg)

tip = Label(text=TIP)
tip.pack(expand=1)
tk.after(TIP_DURATION, tip.destroy)

tk.mainloop()
